package com.weilan.ark3.service;

import com.weilan.ark3.entity.BasicConfigDto;
import com.weilan.ark3.entity.ControlDto;
import com.weilan.ark3.entity.ControlRtu;
import com.weilan.ark3.entity.page.PageQuery;
import com.weilan.ark3.entity.page.TableDataInfo;
import io.swagger.models.auth.In;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STIconSetType;

import javax.swing.plaf.metal.OceanTheme;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 数据查询Service接口
 */
public interface TbSearchService {
    List<Object> listByTb(List<String> tbNameList, String deviceId, String startTime, String endTime);

    /**
     * 历史数据查询
     */
    TableDataInfo<Object> listByModuleName(List<String> tbNameList, String deviceId,String slaveId, String startTime, String endTime, PageQuery pageQuery);

    int selectPvId();

    /**
     * 故障查询
     */
    TableDataInfo<Object> listByBreakdown(String startTime, String endTime);


    TableDataInfo<Object> listByact(String startTime, String endTime);


    String findTable(String name);


    boolean saveConfig(ControlRtu controlrtu);


    List<ControlRtu> findAllmessge(String name, Object num);

    boolean deletecontrortu();

    boolean deletebasicconfig();

    List<BasicConfigDto> selectAllbasic();

    void insertAllbasic(BasicConfigDto basicConfigDto);

    List<Map<String, Object>> selectSocPower(List<String> nameList, String date);
}
